#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class DeviceInfo : Business.BusinessBase<DeviceInfo, int>
	{
		#region Fields and Properties

		private String departCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DepartCode
		{
			get { return departCode; }
			set
			{
				if (value != departCode)
				{
					MarkChanged("DepartCode");
					departCode = value;
				}
			}
		}

		private String classRoomCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ClassRoomCode
		{
			get { return classRoomCode; }
			set
			{
				if (value != classRoomCode)
				{
					MarkChanged("ClassRoomCode");
					classRoomCode = value;
				}
			}
		}

		private int devNum = 0;
		/// <summary>
		/// 
		/// </summary>
		public int DevNum
		{
			get { return devNum; }
			set
			{
				if (value != devNum)
				{
					MarkChanged("DevNum");
					devNum = value;
				}
			}
		}

		private String aidDevDes = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AidDevDes
		{
			get { return aidDevDes; }
			set
			{
				if (value != aidDevDes)
				{
					MarkChanged("AidDevDes");
					aidDevDes = value;
				}
			}
		}

		private String devDes = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DevDes
		{
			get { return devDes; }
			set
			{
				if (value != devDes)
				{
					MarkChanged("DevDes");
					devDes = value;
				}
			}
		}

		private int deviceLvl = 0;
		/// <summary>
		/// 
		/// </summary>
		public int DeviceLvl
		{
			get { return deviceLvl; }
			set
			{
				if (value != deviceLvl)
				{
					MarkChanged("DeviceLvl");
					deviceLvl = value;
				}
			}
		}

		private DateTime startDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime StartDate
		{
			get { return startDate; }
			set
			{
				if (value != startDate)
				{
					MarkChanged("StartDate");
					startDate = value;
				}
			}
		}

		private DateTime checkDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime CheckDate
		{
			get { return checkDate; }
			set
			{
				if (value != checkDate)
				{
					MarkChanged("CheckDate");
					checkDate = value;
				}
			}
		}

		private DateTime buyDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime BuyDate
		{
			get { return buyDate; }
			set
			{
				if (value != buyDate)
				{
					MarkChanged("BuyDate");
					buyDate = value;
				}
			}
		}

		private String contactor = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Contactor
		{
			get { return contactor; }
			set
			{
				if (value != contactor)
				{
					MarkChanged("Contactor");
					contactor = value;
				}
			}
		}

		private String zip_Code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Zip_Code
		{
			get { return zip_Code; }
			set
			{
				if (value != zip_Code)
				{
					MarkChanged("Zip_Code");
					zip_Code = value;
				}
			}
		}

		private String facPhone = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FacPhone
		{
			get { return facPhone; }
			set
			{
				if (value != facPhone)
				{
					MarkChanged("FacPhone");
					facPhone = value;
				}
			}
		}

		private String facAddress = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String FacAddress
		{
			get { return facAddress; }
			set
			{
				if (value != facAddress)
				{
					MarkChanged("FacAddress");
					facAddress = value;
				}
			}
		}

		private String proFac = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProFac
		{
			get { return proFac; }
			set
			{
				if (value != proFac)
				{
					MarkChanged("ProFac");
					proFac = value;
				}
			}
		}

		private DateTime proDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime ProDate
		{
			get { return proDate; }
			set
			{
				if (value != proDate)
				{
					MarkChanged("ProDate");
					proDate = value;
				}
			}
		}

		private String deviceCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DeviceCode
		{
			get { return deviceCode; }
			set
			{
				if (value != deviceCode)
				{
					MarkChanged("DeviceCode");
					deviceCode = value;
				}
			}
		}

		private String deviceName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DeviceName
		{
			get { return deviceName; }
			set
			{
				if (value != deviceName)
				{
					MarkChanged("DeviceName");
					deviceName = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public DeviceInfo()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override DeviceInfo DataSelect(int id)
		{
			return Services.DALService.DeviceInfoService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.DeviceInfoService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.DeviceInfoService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.DeviceInfoService.Delete(this);
		}

		#endregion Base overrides
	}
}
